<html>
    <head>
        <meta charset="UTF-8">
        <title>鼠标经过和鼠标离开事件</title>
        <script type="text/javascript">
        function colorRed(){
            //获取超链接标签
             var sumushao = document.getElementById("sumushao");
             //修改css样式
             sumushao.style.color="red";

        }
        function colorBlue(){
            //获取超链接标签
             var sumushao = document.getElementById("sumushao");
             //修改css样式
             sumushao.style.color="blue";

        }
        /*
            鼠标经过（onmousemove句柄事件）
            鼠标离开（onmouseout句柄事件）
        */
        
        
        </script>
        <body>
            <a  id="sumushao" style="cursor: pointer; text-decoration:underline;color:blueviolet ;
            " onmousemove="colorRed()" onmouseout="colorBlue()">苏木少</a>

        </body>
    </head>
</html>